#ifndef PSD_BACKEND_HANDLER_H
#define PSD_BACKEND_HANDLER_H

#include "psd_xfer.h"

typedef struct psd_backend_handler_t {
	char *name;
	int (*run) (psdXferArgs *p_args, psdXferArgs *c_args, uint64_t xfer_amt);
} psdBackendHandler;

int psd_backend_handler_init();
int psd_get_backend_handler(const char *name);
int psd_add_backend_handler(psdBackendHandler *handler);
psdBackendHandler *psd_get_backend(const char *name);

#endif
